#define LOW_MEM 0x100000
#define PAGING_MEMORY (16*1024*1024)
#define PAGING_PAGES (PAGING_MEMORY>>12)
#define MAP_NR(addr) (((addr)-LOW_MEM)>>12)
#define USED 100

struct map_struct{
    unsigned char enable: 1;
    unsigned char ref_counter: 7;
};

void mem_init(unsigned int min_size, unsigned int max_size);


